package cn.snorlaxzjt.LBSserver.po.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;

@Data
@TableName("moment")
public class MomentEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer userId;
    private String content;
    private Long locationId;
    private String imageUrl;
    private Integer status;
    //地标部分
    private BigDecimal longitude;
    private BigDecimal latitude;
    private String address;
    private String landmark;
    private Timestamp createTime = new Timestamp(System.currentTimeMillis());
}
